package com.haizhi.crm.biz.task.message.transfer;

import com.haizhi.crm.biz.constant.MessageType;
import com.haizhi.crm.biz.task.message.transfer.impl.InnerEventTransfer;
import com.haizhi.crm.biz.task.message.transfer.impl.OuterEventTransfer;

/**
 * Created by wangshan on 2018/5/23.
 */
public class MessageTransferFactory {

    public static TransferService getTransfer(String type) {
        if (type.equals(MessageType.INNER)) {
            return new InnerEventTransfer();
        } else {
            return new OuterEventTransfer();
        }
    }

}
